Return to doc.sitecore.com

Valid for Sitecore 5.2, 5.1.1
  Adding Workflow Support
Prev Next

Sitecore provides publishing workflows, where modified items must move through a predefined set of states and transitions before being published.  If the items stored in the external data source should move through a workflow before being published, the data provider must implement the following methods to provide workflow support.

Return Value

Method Name

Parameters

Description

DataUri[ ]

GetItemsInWorkflowState

WorkflowInfo info
CallContext context

Returns all the items that are in the workflow identified by info.WorkflowID and in the state identified by info.StateID.
 

WorkflowInfo

GetWorkflowInfo

ItemDefinition item
VersionUri version
CallContext context
 

Returns the item’s workflow and current state.

bool

SetWorkflowInfo

ItemDefinition item
VersionUri version
Workflow info
CallContext context

Sets the item’s workflow and current state.  Returns True if the item was updated, False otherwise.


Prev Next